package com.example.forum.service;

import com.example.forum.domain.Comment;
import java.util.List;

public interface CommentService {
    //根据评论的类型查询评论
    public List<Comment> findByEntityType( int entityType,int entityId,int start,int size);

    //根据评论类型查询评论的条数
    public Integer findByEntityTypeCount(int entityType,int entityId);

    //增加评论
    public void addComment(Comment comment) throws Exception;
}
